package test5;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();

        list.add("123");
        list.add("456");
        list.add("123");

        list.add(1,"qqq");
        list.remove("123");

        System.out.println(list);
    }
}
